﻿<link href="~/Content/ViewStyle/HourDataSingleView.css" rel="stylesheet" />
<div class="modal fade" id="hourModal" ref="hourModal" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">单点小时数据</h4>
                <a href="~/Content/help/SignleHourHelp.htm" target="_blank">帮助文档</a>
            </div>
            <div class="modal-body">
                <table>
                    <tr>
                        <td>设备名称: </td>
                        <td>
                            <div class="dropdown">
                                <input name="box" v-model="sourceName">
                                <button type="button" class="btn dropdown-toggle" id="dropdownMenu1" data-toggle="dropdown">
                                    <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu  pull-left scrollDropDown" role="menu" aria-labelledby="dropdownMenu1" v-model="sourceName">
                                    <li role="presentation" v-for="item in sourceSource" v-on:click="sourceName = item.id">
                                        <a role="menuitem" tabindex="-1">{{item.name}}</a>
                                    </li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>点名称: </td>
                        <td>
                            <div class="dropdown">
                                <input name="box" v-model="quantityName">
                                <button type="button" class="btn dropdown-toggle" id="dropdownMenu2" data-toggle="dropdown">
                                    <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu  pull-left scrollDropDown" role="menu" aria-labelledby="dropdownMenu2" v-model="quantityName">
                                    <li role="presentation" v-for="item in quantitySource" v-on:click="quantityName = item.id">
                                        <a role="menuitem" tabindex="-1">{{item.name}}</a>
                                    </li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>日期值或单元格: </td>
                        <td><input v-model="date" /></td>
                    </tr>
                    <tr>
                        <td>小时: </td>
                        <td>
                            <div class="dropdown">
                                <input name="box" v-model="hour" class="dayDataSingle_timeRangeInput">
                                <button type="button" class="btn dropdown-toggle" id="dropdownMenu4" data-toggle="dropdown">
                                    <span class="caret"></span>
                                </button>
                                <ul class="dropdown-menu  pull-left scrollDropDown" role="menu" aria-labelledby="dropdownMenu4" v-model="hour">
                                    <li role="presentation" v-for="item in hourDataSource2" v-on:click="hour = item.value">
                                        <a role="menuitem" tabindex="-1">{{item.dis}}</a>
                                    </li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>数值计算方式: </td>
                        <td>
                            <select v-model="hourDataCalcMode">
                                <option v-for="item in hourDataSource" v-bind:value="item.value">
                                    {{item.dis}}
                                </option>
                            </select>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" v-on:click="confirm()">提交更改</button>
            </div>
        </div>
    </div>
</div>
<script src="~/Scripts/ViewScript/Report/DMYDataModel.js" type="text/javascript"></script>
<script src="~/Scripts/ViewScript/Report/SourceQuantityModel.js" type="text/javascript"></script>
<script src="~/Scripts/ViewScript/Report/help.js" type="text/javascript"></script>
<script src="~/Scripts/ViewScript/Report/HourDataController.js" type="text/javascript"></script>
